package home_work7;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class test1 {

	public static void main(String[] args) throws IOException {
		FileInputStream s=new FileInputStream("myfile.txt");
		FileOutputStream s1=new FileOutputStream("myfile_cp.txt");
		byte[] buffer = new byte[20 * 1024];
		while ((s.read(buffer,0,buffer.length))!=-1){
			s1.write(buffer);
		}
		s.close();
		s1.close();

	}

}
